<%@ page language="java" pageEncoding="UTF-8" %>
<%@ page import="com.nce.util.LoginUserUtil"%>

					<div id="search">
						<div id="search_top">
							<a href="/"><div id="logo"></div></a>
							<div id="menu">
								<a href="${ctx}/s/search!getMblog.action">微博</a>
								<a href="${ctx}/s/search!getNews.action">新闻</a>
								<a href="${ctx}/s/search!getBbsblog.action">论坛</a>
								<a href="${ctx}/s/search!getBaseNews.action">全部</a>
							</div>
						</div>
						<form id="search_form" action="" method="post">
							<div id="search_center">
								<input id="search_input" name="words" type="text" value="${words}" />
								<input type="submit" id="keyword_btn" value="站内搜索">
							</div>
							<p class="search-radios">
								<input type="radio" name="type" value="content" <c:if test="${!isTitle}">checked="checked"</c:if> id="news">
								<label for="news">
									全文
								</label>
								<input type="radio" name="type" value="title" <c:if test="${isTitle}">checked="checked"</c:if> id="newstitle">
								<label for="newstitle" style="padding: 0px;">
									标题
								</label>
							</p>
						</form>
					</div>
					<%
						if (LoginUserUtil.getUser() != null) {
					%>
					<div id="tips">
						<div id="tips_head">
							<a href="#"><%=LoginUserUtil.getUser().getLoginName()%></a>
							<div id="tips_img"></div>							
						</div>
						<div id="tips_txt">
							<div class="tips_line" align="left">
								<a href="${ctx}/account/user!input.action?id=<%=LoginUserUtil.getUser().getId()%>">个人资料</a>
							</div>
							<div class="tips_line" align="left">
								<a id="addKeys" href="${ctx}/keyword/keyword.action" title="关键词管理">关键词</a>
							</div>
							<div class="tips_line" align="left">
								<a id="addMblogvip" href="${ctx}/mblogvip/mblogvip.action" title="重点微博管理">重点微博</a>
							</div>
							<div class="tips_line" align="left">
								<a href="${ctx}/j_spring_security_logout">退出</a>
							</div>
						</div>
					</div>
					<div id="tips_head"><a href="#">帮助</a></div>
					<%
						} else {
					%>
					<div id="login_bar">
						<a href="${ctx}/login.action">登陆</a>|
						<a href="${ctx}/reg.action">注册</a>|
						<a href="#">帮助</a>
					</div>					
					<%
						}
					%>
